package com.example.mybatisplus.demo.easypoi.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zengqingfa
 * @className GenerateDropDownBoxEntity
 * @description
 * @create 2023/1/2 21:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GenerateDropDownBoxEntity implements Serializable {
    /**
     * id
     */
    @Excel(name = "id", orderNum = "0", width = 10)
    private Integer id;
    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名", orderNum = "1", width = 25)
    private String name;
    /**
     * 学生性别
     */
    @Excel(name = "学生性别", orderNum = "2", width = 25, replace = {"男_1", "女_2"},addressList = true)
    private int sex;

    @Excel(name = "出生日期", orderNum = "3", width = 50, format = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;


    @Excel(name = "出生地址", orderNum = "4", width = 50, dict = "level",addressList = true)
    private String address;
}